<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link href="./css/template.css" rel="stylesheet" type="text/css" />
	<title>SCO</title>
</h:head>

<h:body>
	<h:form id="usuarioForm">
		<center>
			<p:panel id="painelCadastro" header="Cadastrar novo usuario"
				style="margin-top:20%;width:400px;">
				<br />
				<h:panelGrid columns="2" style="text-align: left;">
					<h:outputLabel value="Login: " />
					<h:inputText id="login" value="#{usuarioBean.usuario.login}"
						size="35" />

					<h:outputLabel value="Password: " />
					<h:inputText id="password" value="#{usuarioBean.usuario.password}"
						size="35" />
				</h:panelGrid>
				<h:messages showDetail="false" style="color:red;" />
				<br /> 
				<center>
					<p:commandButton value="Logar" action="#{usuarioBean.login}"
						ajax="false" />
					<p:commandButton value="Limpar" action="#{usuarioBean.limpar}"
						update="painelCadastro" />
				</center>
			</p:panel>
		</center>
	</h:form>
</h:body>
</html>